package org.testing.model;

import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.Scanner;


public class InOutManager {
    private InputStream in;
    private OutputStream out;
    private PrintStream printStream;

    public InOutManager(InputStream in, OutputStream out) {
        this.in = in;
        this.out = out;
        this.printStream = new PrintStream(out);
    }

    public void outPut(String something) {
        printStream.print(String.format(something));
    }
    
    public void outPut() {
        printStream.println();
    }
    public String inPutLine() {
    	return new Scanner(in).nextLine();
    }
}

